from pathlib import Path
import sys

FILE = Path(__file__).resolve()
ROOT = FILE.parents[1]      # YOLO_samples
sys.path.append(str(ROOT))

from ultralytics import YOLO


if __name__ == "__main__":
    model = YOLO("yolov8n.pt")
    model.export(format="onnx", opset=11, dynamic=False, simplify=True)
